package com.net.xpay.common.domain.backup;

import com.net.common.domain.CommonDomain;
import com.net.xpay.common.enums.user.ServicePayMode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 商户批量有密转账数据汇总 UserTransStat
 */
@Getter
@Setter
@NoArgsConstructor
public class X3 extends CommonDomain {
    @ApiModelProperty(notes = "合伙人id")
    private Long partnerId;

    @ApiModelProperty(notes = "收费模式")
    private ServicePayMode mode;

    @ApiModelProperty(notes = "服务费单价 分")
    private Long serviceUnitPrice;

    @ApiModelProperty(notes = "服务费收费比例")
    private BigDecimal serviceRatio;

    @ApiModelProperty(notes = "开始日期")
    private LocalDate startDay;

    @ApiModelProperty(notes = "截止日期")
    private LocalDate endDay;

    @ApiModelProperty(notes = "用户id")
    private Long userId;

    @ApiModelProperty(notes = "批次总金额，单位为元，精确到小数点后两位，取值范围[0.01,9999999999999.99]  必选")
    private String totalTransAmount;

    @ApiModelProperty(notes = "批次总笔数 10 必选")
    private Long totalCount;

    @ApiModelProperty(notes = "成功金额 单位为元")
    private String successAmount;

    @ApiModelProperty(notes = "成功笔数")
    private Long successCount;

    @ApiModelProperty(notes = "失败金额")
    private String failedAmount;

    @ApiModelProperty(notes = "失败笔数")
    private Long failCount;

    @ApiModelProperty(notes = "一级合伙人总收益 分")
    private Long totalPartnerBenefit;

    @ApiModelProperty(notes = "二级合伙人总收益 分")
    private Long totalFatherPartnerBenefit;

    @ApiModelProperty(notes = "平台总收益 分")
    private Long totalPlatformBenefit;

    //收费部分
    @ApiModelProperty(notes = "不免费的成功金额")
    private String notFreeSuccessAmount;

    @ApiModelProperty(notes = "不免费的成功金额")
    private Long notFreeSuccessCount;

    @ApiModelProperty(notes = "最终服务费 分")
    private Long finalServicePrice;
}
